@import "../../../../style/default";

.aside-collapsed :host {
  left: 63px;
  top: 100px;
}

.apes-header {
  display: block;
  color: rgba(0, 0, 0, 0.65);
  background: $component-background;
  height: $apes-header-hg;
  //border-left: 1px solid $border-color-split;
  //border-right: 1px solid $border-color-split;
  border-bottom: 1px solid $border-color-split;
  padding: 4px 0;
  margin: 0;
  position: fixed;
  top: $apes-header-top;
  bottom: $apes-header-bottom;
  left: $apes-header-left;
  right: $apes-header-right;
  z-index: 3;
  ::ng-deep {
    .detail {
      display: flex;
    }
    .row {
      display: flex;
    }
    .title {
      font-size: 20px;
      font-weight: 500;
      color: $heading-color;
    }
  }
}

.headerContainer {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: space-between;

  >.buttonList {
    display: inline-block;
    height: 100%;
    //padding: 2px 0 2px 16px;
    padding-left: 16px;
  }

  .statusBar {
    display: inline-block;
    height: 100%;
    border-left: 1px solid #d9d7d7;
  }
}

@media screen and (max-width: $screen-xl) {
  .aside-collapsed .apes-header {
    //left: 63px;
    //top: 100px;
  }
  .apes-header {
    //left: 199px;
    //top: 100px;
    ::ng-deep {
      .extra {
        margin-left: 44px;
      }
    }
  }
}

@media screen and (max-width: $screen-lg) {
  .aside-collapsed .apes-header {
    //left: 63px;
    //top: 100px;
  }
  .apes-header {
    //left: 199px;
    //top: 100px;
    ::ng-deep {
      .extra {
        margin-left: 20px;
      }
    }
  }
}

@media screen and (max-width: $screen-md) {
  .aside-collapsed .apes-header {
    left: 0 !important;
    top: 0;
  }
  .aside-collapsed .header {
    width: 100%;
    margin: 0;
  }
  .content .apes-header {
    left: 0;
    top: 0;
    ::ng-deep {
      .row {
        display: block;
      }

      .action,
      .extra {
        margin-left: 0;
        text-align: left;
      }
    }
  }
}

@media screen and (max-width: $screen-sm) {
  .aside-collapsed .apes-header {
    left: 0;
    top: 0;
  }
  .apes-header {
    left: 0;
    top: 0;
    ::ng-deep {
      .detail {
        display: block;
      }
    }
  }
  .headerContainer {
    .statusBar {
      display: none;
    }
  }
}

@media screen and (max-width: $screen-xs) {
  .aside-collapsed .apes-header {
    left: 0;
    top: 0;
  }
  .apes-header {
    left: 0;
    top: 0;
    ::ng-deep {
      .action {
        .apes--btn-group,
        .apes--btn {
          display: block;
          margin-bottom: 8px;
        }
        .apes--btn-group > .apes--btn {
          display: inline-block;
          margin-bottom: 0;
        }
      }
    }
  }
}
